home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ PC Card Modem.xpl < prev    next >
Text File  |  2000-11-12  |  1KB  |  47 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Hardware\PCMCIA"
  5. "NAME"="PC Card Modem Power Management"
  6. "VERSION"="1.03"
  7. "OSVERSION"="00101"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Enable Power Management"
  10. "DESCRIPTION 1"="When using a PC Card modem, if mouse pointer hangs when accessing  "More Info" on the "Diagnostics" tab in the Modems icon in Control Panel, uncheck [clear] box to disable APM [Advanced Power Management] for PC Card Modems."
  11. "DESCRIPTION 2"="To re-enable APM on PC Card Modem, check the Box & apply change." 
  12. "DESCRIPTION 3"="For additional information see MS KB article: http://support.microsoft.com/support/kb/articles/Q258/1/72.htm."
  13. "AUTHOR"="Ojatex@aol.com"
  14. "CONTACTURL"="http://members.aol.com/ojatex/"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="Thanks to CptSiskoX for Tip."
  17.  
  18. sp="HKLM\System\CurrentControlSet\Services\VxD\VCOMM\"  'Bnry=00000000=disableAPM;01000000=EnableAPM
  19. sV1="EnablePowerManagement"
  20.  
  21. Sub Plugin_Initialize 
  22.     i=RegReadValue(sP&sV1)
  23.  
  24.     if i="01000000" or IsEmpty(i)  then 
  25.        SetUIElement 1,true
  26.     end if
  27. End Sub
  28.  
  29. Sub Plugin_CheckData(ElementIndex)
  30. End Sub
  31.  
  32. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  b=GetUIElement(1)
  34.  if b=true then
  35.    Call RegWriteValue(sP&sV1,"01000000",3)
  36.  else
  37.    Call RegWriteValue(sP&sV1,"00000000",3)
  38.  end if
  39.  
  40. End Sub
  41.  
  42. Sub Plugin_Terminate 
  43. End Sub
  44.  
  45.  
  46.  
  47.